package com.sc.nft.controller.request;


import com.sc.nft.entity.vo.merchantPledgeTask.PledeCollectionConfDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class PledgeCollectionRequest {

    @ApiModelProperty(value = "质押藏品id")
    @NotNull(message = "质押活动id不能为空")
    private Long id;

    @ApiModelProperty(value = "质押周期id")
    @NotNull(message = "质押周期id不能为空")
    private Long cycleConfid;

    @ApiModelProperty(value = "交易密码")
    private String dealPwd;

    @ApiModelProperty(value = "质押份数")
    @NotNull(message = "质押份数不能为空")
    @Min(value = 1,message = "质押份数不能小于1")
    @Max(value = 20,message = "单次质押份数不能大于20")
    private Integer count;


    @ApiModelProperty(value = "质押藏品列表")
    private List<PledeCollectionConfDTO> pledeCollectionList;

}
